
.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #f7f7fbf1;
  margin: 0;
}

.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.text-container{
  padding-top: 30px;
  justify-items: center;
}

.preference-container {
  width: 1000px;
}

.preference-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  background: linear-gradient(135deg, #a1bcdd 0%, #3a4c57 100%);
  border-radius: 16px;
  margin-bottom: 30px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.intro-icon {
  font-size: 48px;
}

.intro-text h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 600;
}

.intro-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 15px;
}

.categories-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.category-group {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.category-group:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;
  transition: background 0.3s ease;
}

.category-header:hover {
  background: linear-gradient(135deg, #eef2ff 0%, #f8f9fa 100%);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-icon {
  font-size: 24px;
}

.category-name {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
}

.selected-count {
  background: linear-gradient(135deg, #667eea 0%, #4f58a6 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.select-all-btn {
  padding: 6px 16px;
  border: 2px solid #667eea;
  background: transparent;
  color: #667eea;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.select-all-btn:hover {
  background: #667eea;
  color: white;
}

.expand-icon {
  color: #999;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.sub-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 24px;
  background: #fafbfc;
}

.sub-category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.sub-category-item:hover {
  border-color: #667eea;
  background: #f5f7ff;
}

.sub-category-item.selected {
  background: linear-gradient(135deg, #667eea 0%, #738ac1 100%);
  border-color: transparent;
  color: white;
}

.checkbox-input {
  display: none;
}

.checkbox-label {
  user-select: none;
  color: #222224d2;
}

.selected-preferences {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.selected-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.selected-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
}

.clear-all-btn {
  padding: 6px 16px;
  background: transparent;
  border: 2px solid #ff6b6b;
  color: #ff6b6b;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.clear-all-btn:hover {
  background: #ff6b6b;
  color: white;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preference-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #738ac1 100%);
  color: white;
  border-radius: 25px;
  font-size: 14px;
}

.remove-btn {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.remove-btn:hover {
  opacity: 1;
}

.action-buttons {
  display: flex;
  justify-content: center;
}

.save-btn {
  padding: 16px 60px;
  background: linear-gradient(135deg, #667eea 0%, #3d558a 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.save-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 动画 */
.slide-enter-active,
.slide-leave-active {
  transition: all 0.3s ease;
  max-height: 500px;
  overflow: hidden;
}

.slide-enter-from,
.slide-leave-to {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}